import { get, post, postFormData, request } from '@/utils/request';

export const fetchGeoSceneToken = (username: string, password: string) => {
    const requestData = {
        username,
        password,
        client: 'referer',
        expiration: 3 * 60,
        referer: 'http://localhost:5173',
        f: 'json',
    };

    return postFormData('/portal/sharing/rest/generateToken', requestData, {
        dynamicBaseURL: 'https://cim.szssscri.com'
    });
};